import * as THREE from 'three'

// 加载器
const loader = new THREE.TextureLoader()
// 设置贴图
const texture = loader.load('./img/ditu.jpg')
// 告诉纹理管理器，纹理的颜色空间是sRGB
texture.colorSpace = THREE.SRGBColorSpace

const geometry = new THREE.PlaneGeometry(1000, 1000)

const material = new THREE.MeshBasicMaterial({
    map: texture,
    side: THREE.DoubleSide,
    // aoMap: texture,
})

const mesh = new THREE.Mesh(geometry, material)

export default mesh